﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PluginInterface;

namespace Buccaneer
{
    public class AddMenuAction : PluginAction
    {
        public AddMenuAction()
        {
            base.name = "addmenu";
            base.func = new ActionFunction(AddMenu);
            base.pluginDaddy = MainProgram.MainForm;
        }

        public void AddMenu(string[] args)
        {
            MenuControl frm = new MenuControl();
            frm.Name = "MenuControl" + MainProgram.MainForm.MdiChildren.Length.ToString();
            frm.Show();
        }
    }

    public class AddAddressBarAction : PluginAction
    {
        public AddAddressBarAction()
        {
            base.name = "addabar";
            base.func = new ActionFunction(this.AddAddressBar);
        }

        public void AddAddressBar(string[] args)
        {
            AddressBarControl frm = new AddressBarControl();
            frm.Name = "AddressBarControl" + MainProgram.MainForm.MdiChildren.Length.ToString();
            frm.Show();
        }
    }

    public class AddControlsAction : PluginAction
    {
        public AddControlsAction()
        {
            base.name = "addctrl";
            base.func = new ActionFunction(this.AddAddressBar);
        }

        public void AddAddressBar(string[] args)
        {
            ControlsControl frm = new ControlsControl();
            frm.Name = "ControlsControl" + MainProgram.MainForm.MdiChildren.Length.ToString();
            frm.Show();
        }
    }
}
